<!-- table search -->
<table>
	<tr>
		<td width="100%" align="left">
		<?php echo $this->search(); ?>
		</td>
		
	</tr>
</table>
<!-- end search -->

<!-- table grid -->
<table class="grid">

	<!-- header -->
	<thead>
		<tr>
			<th width="10px">#</th>
			<th width="5px"><input type="checkbox" onclick="checkAll()"></th>

<th width="230"><?php echo $this->caption('ask',"Ask");?></th>
<th width="70"><?php echo $this->caption('status',"Published");?></th>
<th width="90"><?php echo $this->caption('ordering',"Order");?>
<a href="#" onclick="saveOrders()"><img src="<?php echo $this->baseURL;?>/images/t_cmd_save_orders.png"></a>
</th>
<th width="150"><?php echo $this->caption('answer',"Answer");?></th>
<th width="100"><?php echo $this->caption('creationTime',"Date");?></th>
<th width="30"><?php echo $this->caption('id',"ID");?></th>

</tr>
	</thead>
	<!-- end header -->
<?php
    $count = 0;
    foreach ($this->data as $question){ ?>
    <tr>
		<td><?php echo $count+1;?></td>
		<td align="center"><input id="<?php echo "item".$count;?>" type="checkbox" class="chkBox" name="chkBox[]"
			value="<?php echo $question['id']; ?>"></td>
		<td><?php echo $this->escape($this->summary($question['ask']) ); ?></td>
		<td align="center"><?php echo $this->publish($question['status'],$question['id']); ?></td>
		<td align="center"><?php echo $this->order($question['ordering'],$count); ?></td>
		<td><?php echo $this->escape($this->summary($question['answer']) ); ?></td>
		<td><?php echo $this->escape($question['creationTime'] ); ?></td>
		<td><?php echo $this->escape($question['id'] ); ?></td>
	</tr>
    <?php $count++; } ?>
</table>
<!-- end table grid -->
    
<table class="paginator">
	<tr>
		<td>
			<?php echo $this->paginator; ?>
		</td>
	</tr>
</table>	



<input type="hidden" name="cmd" id="cmd">
<input type="hidden" name="params" id="params" value="">
